int buffer=0;
int incomingatmo[255];

void boblight()
{

  if(Serial.available()>0)
  {
    buffer = Serial.read();
   if(buffer==0xff)
   {
     while(Serial.available()==0)
     { }
     buffer=Serial.read();
     if(buffer==0x00)
     {
       while(Serial.available()==0)
     { }
       buffer=Serial.read();
       if(buffer==0x00)
         {
           for(int i=0;i<Channels;i++)
            {
              while(Serial.available()==0)
             { }
              incomingatmo[i]=Serial.read();
   
             }
            for(int c=0;c<NumLEDs;c++)
             {           
                outputpwm(c);
             }
             WriteLEDArray();
         }
       }    
     }
   }
   
   
   
   else
   {
   	 WriteLEDArray();
     delay(5);
   }
}
